<?php /* Smarty version 2.6.14, created on 2012-10-20 20:05:32
         compiled from admin_avatar.tpl */
?><?php
SELanguage::_preload_multi(690701009,690701010,690701011,690701012,690701013,690701014);
SELanguage::load();
?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'admin_header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<link rel="stylesheet" href="../templates/he_admin_styles.css" title="stylesheet" type="text/css" />
<link rel="stylesheet" href="../templates/he_avatar_styles.css" title="stylesheet" type="text/css" />

<h2><?php echo SELanguage::_get(690701009); ?></h2>
<?php echo SELanguage::_get(690701010); ?>
<br />
<br />

<?php if ($this->_tpl_vars['message']): ?>
	<?php if ($this->_tpl_vars['message']['type'] == 'success'): ?>
		<div class='he_success'><img src='../images/success.gif' border='0' class='icon'> <?php echo $this->_tpl_vars['message']['text']; ?>
</div>
	<?php endif; ?>
	<?php if ($this->_tpl_vars['message']['type'] == 'error'): ?>
		<div class='he_error'><img src='../images/error.gif' border='0' class='icon'> <?php echo $this->_tpl_vars['message']['text']; ?>
</div>
	<?php endif; 
 endif; ?>

<form method="post">
<h2><?php echo SELanguage::_get(690701011); ?></h2>
<div class="he_body">
<?php $_from = $this->_tpl_vars['avatars']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['avatar']):
?>
	<div class="he_avatar_item">
		<img src="../uploads_admin/avatar/<?php echo $this->_tpl_vars['avatar']['filename']; ?>
" width="100" height="100"/><br/>
		<input type="checkbox" value="<?php echo $this->_tpl_vars['avatar']['id']; ?>
" name="avatar_ids[]" onchange="$(this).getParent().toggleClass('he_avatar_del_item')"/>
	</div>
<?php endforeach; endif; unset($_from); ?>
	<div class="clr"></div>
	<br/>
	<input type="hidden" name="task" value="delete_avatars"/>
	<input class="button" type="submit" value="<?php echo SELanguage::_get(690701012); ?>"/>
</div>
 </form>

<br/>
<br/>

<h2><?php echo SELanguage::_get(690701013); ?></h2>
<?php echo SELanguage::_get(690701014); ?> 
<form method="post" enctype="multipart/form-data">
<div class="he_body">
	<input type="file" name="avatar_file" onchange="this.form.submit();"/>
	<input type="hidden" name="task" value="new_avatar"/>
</div>
</form>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'admin_footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>